<div class='lastcomitem'>
<table>
<tr>
<td style='width:60px'>
<img src='/uploads/media/thumbnail_60_60_p/<?php echo $com['PhotoImage'] ?>' />
</td>
<td>
<div>
<?php echo $sf_user->isAuthenticated() ? link_to($com['Firstname'].' '.$com['Lastname'],'myaccount/index?account='.$com['UserId']) : $com['Firstname'].' '.$com['Lastname'] ; ?>
</div>
<div>
<?php echo $com['CommentBody'] ?>
</div>
<div>
<?php echo link_to('удалить комментарий','comment/deletefromindex?comid='.$com['CommentId'].'&photoid='.$com['PhotoId']); ?>
</div>
</td>
</tr>
</table>
</div>